﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Things.ThingsWeb.BuyerInfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					string BuyerAccount= strid;
					ShowInfo(BuyerAccount);
				}
			}
		}
		
	private void ShowInfo(string BuyerAccount)
	{
		Things.BLL.BuyerInfo bll=new Things.BLL.BuyerInfo();
		Things.Model.BuyerInfo model=bll.GetModel(BuyerAccount);
		this.lblBuyerAccount.Text=model.BuyerAccount;
		this.lblPetName.Text=model.PetName;
		this.lblRealName.Text=model.RealName;
		this.lblEmail.Text=model.Email;
		this.lblMobilePhone.Text=model.MobilePhone;
		this.lblAddress.Text=model.Address;

	}


    }
}
